<template>
  <div class="outer">
    <!-- props传参  这里就要写双标签 里面包的数据就是传过去的数据-->
    <Tab title="美食">
      <img
        width="200"
        src="https://img2.baidu.com/it/u=2082735800,426564252&fm=253&fmt=auto&app=138&f=GIF?w=400&h=300"
        alt=""
      />
    </Tab>
    <Tab title="游戏">
      <ul>
        <li>LoL</li>
        <li>CF</li>
        <li>DNF</li>
      </ul>
    </Tab>
    <Tab title="电影">
      <video
        src="./components/16.状态提升中父子组件的生命周期.mp4"
        width="250"
        autoplay
        muted
      ></video>
    </Tab>
  </div>
</template>

<script>
import Tab from "./components/Tab";
export default {
  name: "App",
  // 注册
  components: { Tab },
  data() {
    return {};
  },
};
</script>

<style scoped>
.outer {
  width: 800px;
  display: flex;
  justify-content: space-between;
}
</style>